import request from '@/utils/request'

// 查询报关单信息列表
export function listACustomsMsg(query) {
  return request({
    url: '/aCustomsMsg/aCustomsMsg/list',
    method: 'get',
    params: query
  })
}

// 查询报关单信息详细
export function getACustomsMsg(customsId) {
  return request({
    url: '/aCustomsMsg/aCustomsMsg/' + customsId,
    method: 'get'
  })
}

// 新增报关单信息
export function addACustomsMsg(data) {
  return request({
    url: '/aCustomsMsg/aCustomsMsg',
    method: 'post',
    data: data
  })
}
export function autoAddCustomsMsg(data) {
  return request({
    url: '/aCustomsMsg/aCustomsMsg/autoAddCustomsMsg',
    method: 'post',
    data: data
  })
}

// 修改报关单信息
export function updateACustomsMsg(data) {
  return request({
    url: '/aCustomsMsg/aCustomsMsg',
    method: 'put',
    data: data
  })
}

// 删除报关单信息
export function delACustomsMsg(customsId) {
  return request({
    url: '/aCustomsMsg/aCustomsMsg/' + customsId,
    method: 'delete'
  })
}
